package entity;

import java.util.List;

/**
 * Created by liuxiaobin on 2017/5/11
 * 卡券的实体
 */

public class Voucher {

    /**
     * code : 1
     * canGet : [{"giveTime":2,"ticketName":"会员每日券","explain":"会员每日登陆即可领取","allotTime":"2017-05-10 17:42:51","ticketid":36},{"giveTime":2,"ticketName":"会员每日券","explain":"会员每日登陆即可领取","allotTime":"2017-05-11 09:26:38","ticketid":37}]
     * cannotGet : [{"getTime":"2017-04-24 19:47:26","giveTime":50,"ticketName":"注册券","explain":"","allotTime":"2017-04-24 19:47:21","ticketid":23},{"getTime":"2017-04-24 19:47:30","giveTime":2,"ticketName":"会员每日券","explain":"会员每日登陆即可领取","allotTime":"2017-04-24 19:47:21","ticketid":24},{"getTime":"2017-04-25 09:56:10","giveTime":2,"ticketName":"会员每日券","explain":"会员每日登陆即可领取","allotTime":"2017-04-25 09:56:05","ticketid":28},{"getTime":"2017-04-26 15:12:40","giveTime":2,"ticketName":"会员每日券","explain":"会员每日登陆即可领取","allotTime":"2017-04-26 15:12:36","ticketid":30},{"getTime":"2017-04-28 09:18:15","giveTime":2,"ticketName":"会员每日券","explain":"会员每日登陆即可领取","allotTime":"2017-04-28 09:18:09","ticketid":32},{"getTime":"2017-05-02 16:04:59","giveTime":2,"ticketName":"会员每日券","explain":"会员每日登陆即可领取","allotTime":"2017-05-02 16:04:53","ticketid":34}]
     */

    private int code;
    private List<CanGetBean> canGet;
    private List<CannotGetBean> cannotGet;
    private int pageCount;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getPageCount() {return pageCount;}

    public void setPageCount(int pageCount) {this.pageCount = pageCount;}

    public List<CanGetBean> getCanGet() {
        return canGet;
    }

    public void setCanGet(List<CanGetBean> canGet) {
        this.canGet = canGet;
    }

    public List<CannotGetBean> getCannotGet() {
        return cannotGet;
    }

    public void setCannotGet(List<CannotGetBean> cannotGet) {
        this.cannotGet = cannotGet;
    }

    public static class CanGetBean {
        /**
         * giveTime : 2
         * ticketName : 会员每日券
         * explain : 会员每日登陆即可领取
         * allotTime : 2017-05-10 17:42:51
         * ticketid : 36
         */

        private int giveTime;
        private String ticketName;
        private String explain;
        private String allotTime;
        private int ticketid;

        public int getGiveTime() {
            return giveTime;
        }

        public void setGiveTime(int giveTime) {
            this.giveTime = giveTime;
        }

        public String getTicketName() {
            return ticketName;
        }

        public void setTicketName(String ticketName) {
            this.ticketName = ticketName;
        }

        public String getExplain() {
            return explain;
        }

        public void setExplain(String explain) {
            this.explain = explain;
        }

        public String getAllotTime() {
            return allotTime;
        }

        public void setAllotTime(String allotTime) {
            this.allotTime = allotTime;
        }

        public int getTicketid() {
            return ticketid;
        }

        public void setTicketid(int ticketid) {
            this.ticketid = ticketid;
        }
    }

    public static class CannotGetBean {
        /**
         * getTime : 2017-04-24 19:47:26
         * giveTime : 50
         * ticketName : 注册券
         * explain :
         * allotTime : 2017-04-24 19:47:21
         * ticketid : 23
         */

        private String getTime;
        private int giveTime;
        private String ticketName;
        private String explain;
        private String allotTime;
        private int ticketid;

        public String getGetTime() {
            return getTime;
        }

        public void setGetTime(String getTime) {
            this.getTime = getTime;
        }

        public int getGiveTime() {
            return giveTime;
        }

        public void setGiveTime(int giveTime) {
            this.giveTime = giveTime;
        }

        public String getTicketName() {
            return ticketName;
        }

        public void setTicketName(String ticketName) {
            this.ticketName = ticketName;
        }

        public String getExplain() {
            return explain;
        }

        public void setExplain(String explain) {
            this.explain = explain;
        }

        public String getAllotTime() {
            return allotTime;
        }

        public void setAllotTime(String allotTime) {
            this.allotTime = allotTime;
        }

        public int getTicketid() {
            return ticketid;
        }

        public void setTicketid(int ticketid) {
            this.ticketid = ticketid;
        }
    }
}
